<extend name="base"/>
<block name="body">

	<div id="reply_keyword" class="r_con_wrap">
	    <div class="control_btn"><a href="{:U('Wechat/keywordShow')}" class="btn_green btn_w_120">添加关键字</a></div>
	    <table border="0" cellpadding="5" cellspacing="0" class="r_con_table">
	        <thead>
	            <tr>
	                <td width="10%" nowrap="nowrap">序号</td>
	                <td width="25%" nowrap="nowrap">触发关键词</td>
	                <td width="15%" nowrap="nowrap">匹配模式</td>
	                <td width="35%" nowrap="nowrap">回复内容</td>
	                <td width="10%" nowrap="nowrap" class="last">操作</td>
	            </tr>
	        </thead>
	        <tbody>
	          <foreach name="lists" item="v" key="k">
	            <tr>
	                <td nowrap="nowrap">{$k+1}</td>
	                <td nowrap="nowrap">【{$v.keywords}】</td>
	                <td nowrap="nowrap"><eq name="v.matchingtype" value="0" >精确匹配<else/>模糊匹配</eq></td>
	                <td>【<if condition="$v.msgtype EQ 'news'">多图文消息<elseif condition="$v.msgtype EQ 'text'"/>文本消息<else/>单图文消息</if>】{$v.content}</td>
	                <td class="last" nowrap="nowrap">
	                    <a href="{:U('keywordShow',array('id'=>$v['id']))}"><img src="__PUBLIC__/Member/images/ico/mod.gif" align="absmiddle" alt="修改" /></a>
	                    <a href="{:U('delKeyword',array('id'=>$v['id']))}" onClick="if(!confirm('删除后不可恢复，继续吗？')){return false};"><img src="__PUBLIC__/Member/images/ico/del.gif" align="absmiddle" alt="删除" /></a>
	                </td>
	            </tr>
	            </foreach>
	         </tbody>
	    </table>
	    <div class="blank20"></div>
	    <div id="turn_page">{$page}</div>
	</div> 

  </block>